<?php
/** @var $this yii\web\View */
/** @var $current_cates backend\models\GoodsCategory */
use frontend\widget\BreadcrumbWidget;
use frontend\widget\CateListWidget;
use frontend\widget\GoodsListWidget;
use frontend\widget\HotsaleGoodsWiget;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use frontend\widget\PagerWidget;
use frontend\widget\FilterConditionWidget;
use frontend\widget\SortConditionWidget;
use frontend\widget\RecentlyBrowserWidget;

$this->registerCssFile('/style/list.css');
$this->registerCssFile('/style/common.css');
// "style/list.css",
//"style/common.css",



//var_dump($current_cates);exit;
?>

<!-- 列表主体 start -->
<div class="list w1210 bc mt10">
    <!-- 面包屑导航 start -->
    <?=BreadcrumbWidget::widget(['current_cate_id'=>$current_cates->id])?>
    <!-- 面包屑导航 end -->

    <!-- 左侧内容 start -->
    <div class="list_left fl mt10">
        <!-- 分类列表 start -->
        <div class="catlist">
            <h2><?=$current_cates->name?></h2>
            <?=CateListWidget::widget(['cate_id'=>$current_cates->id])?>
        </div>
        <!-- 分类列表 end -->

        <div style="clear:both;"></div>

        <!-- 新品推荐 start -->
        <div class="newgoods leftbar mt10">
            <h2><strong>新品推荐</strong></h2>
            <div class="leftbar_wrap">
                <ul>
                    <?=HotsaleGoodsWiget::widget(['status'=>9,'count'=>3])?>

                </ul>
            </div>
        </div>
        <!-- 新品推荐 end -->

        <!--热销排行 start -->
        <div class="hotgoods leftbar mt10">
            <h2><strong>热销排行榜</strong></h2>
            <div class="leftbar_wrap">
                <ul>
                    <li></li>
                </ul>
            </div>
        </div>
        <!--热销排行 end -->

        <!-- 最近浏览 start -->
        <?=RecentlyBrowserWidget::widget();?>
        <!-- 最近浏览 end -->
    </div>
    <!-- 左侧内容 end -->

    <!-- 列表内容 start -->
    <div class="list_bd fl ml10 mt10">
        <!-- 热卖、促销 start -->
        <div class="list_top">
            <!-- 热卖推荐 start -->
            <div class="hotsale fl">
                <h2><strong><span class="none">热卖推荐</span></strong></h2>
                <ul>
                    <?=HotsaleGoodsWiget::widget(['status'=>10,'count'=>3])?>

                </ul>
            </div>
            <!-- 热卖推荐 end -->

            <!-- 促销活动 start -->
            <div class="promote fl">
                <h2><strong><span class="none">促销活动</span></strong></h2>
                <ul>
                    <li><b>.</b><a href="">DIY装机之向雷锋同志学习！</a></li>
                    <li><b>.</b><a href="">京东宏碁联合促销送好礼！</a></li>
                    <li><b>.</b><a href="">台式机笔记本三月巨惠！</a></li>
                    <li><b>.</b><a href="">富勒A53g智能人手识别鼠标</a></li>
                    <li><b>.</b><a href="">希捷硬盘白色情人节专场</a></li>
                </ul>

            </div>
            <!-- 促销活动 end -->
        </div>
        <!-- 热卖、促销 end -->

        <div style="clear:both;"></div>

        <!-- 商品筛选 start -->
        <?=FilterConditionWidget::widget()?>
        <!-- 商品筛选 end -->

        <div style="clear:both;"></div>

        <!-- 排序 start -->
        <?=SortConditionWidget::widget();?>
        <!-- 排序 end -->

        <div style="clear:both;"></div>

        <!-- 商品列表 start-->
       <?=GoodsListWidget::widget(['cate_id'=>$current_cates->id])?>
        <!-- 商品列表 end-->

        <!-- 分页信息 start -->
        <?=PagerWidget::widget();?>
        <!-- 分页信息 end -->

    </div>
    <!-- 列表内容 end -->
</div>
<!-- 列表主体 end-->

<div style="clear:both;"></div>

